package net.chenlin.dp.modules.base.manager.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.common.entity.Query;
import net.chenlin.dp.modules.base.dao.SysFeitieXiaoshuoMapper;
import net.chenlin.dp.modules.base.entity.SysFeitieXiaoshuoEntity;
import net.chenlin.dp.modules.base.manager.SysFeitieXiaoshuoManager;

/**
 * 废铁销售
 *
 * @author ZhouChenglin
 * @email yczclcn@163.com
 * @url www.chenlintech.com
 * @date 2018年12月04日 下午9:15:01
 */
@Component("sysFeitieXiaoshuoManager")
public class SysFeitieXiaoshuoManagerImpl implements SysFeitieXiaoshuoManager {

	@Autowired
	private SysFeitieXiaoshuoMapper sysFeitieXiaoshuoMapper;
	

	@Override
	public List<SysFeitieXiaoshuoEntity> listSysFeitieXiaoshuo(Page<SysFeitieXiaoshuoEntity> page, Query search) {
		return sysFeitieXiaoshuoMapper.listForPage(page, search);
	}

	@Override
	public int saveSysFeitieXiaoshuo(SysFeitieXiaoshuoEntity sysFeitieXiaoshuo) {
		return sysFeitieXiaoshuoMapper.save(sysFeitieXiaoshuo);
	}

	@Override
	public SysFeitieXiaoshuoEntity getSysFeitieXiaoshuoById(Long id) {
		SysFeitieXiaoshuoEntity sysFeitieXiaoshuo = sysFeitieXiaoshuoMapper.getObjectById(id);
		return sysFeitieXiaoshuo;
	}

	@Override
	public int updateSysFeitieXiaoshuo(SysFeitieXiaoshuoEntity sysFeitieXiaoshuo) {
		return sysFeitieXiaoshuoMapper.update(sysFeitieXiaoshuo);
	}

	@Override
	public int batchRemove(Long[] id) {
		int count = sysFeitieXiaoshuoMapper.batchRemove(id);
		return count;
	}
	
}
